package com.resource.controller;

import com.resource.service.IHelloTestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author chengyadong
 * @date 2023/11/28 10:06
 * @description 测试类
 */
@RestController
@RequestMapping("/helloTest")
public class HelloTestController {
	@Autowired
	IHelloTestService helloTestService;

	@RequestMapping("/test")
	public String tes() {
		return "resource";
	}

	//查询数据库
	@PostMapping("/query")
	public Map query() {
		return helloTestService.query();
	}

	//查询数据库
	@RequestMapping("/query1")
	public Map query1() {
		return helloTestService.query();
	}
}
